/* Copyright 2007-2008 dnAnalytics Project.
 *
 * Contributors to this file:
 * Patrick van der Velde
 *
 * This file is part of dnAnalytics.  dnAnalytics is licensed under the 
 * Microsoft Public License. See License.txt for a complete copy of the
 * license.
 */

using System;
using System.Diagnostics;
using NUnit.Framework;
using dnAnalytics.LinearAlgebra.Solvers;

namespace dnAnalytics.Tests.LinearAlgebra.Solvers.Preconditioners
{
    //[TestFixture]
    //[Category("Managed")]
    //public sealed class DiagonalTest : PreconditionerTest
    //{
    //    internal override IPreConditioner CreatePreconditioner(SparseMatrix matrix)
    //    {
    //        return new UnitPreconditioner(matrix);
    //    }

    //    protected override void CheckResult(IPreConditioner preconditioner, Vector vector, Vector result)
    //    {
    //        Assert.AreEqual(typeof(UnitPreconditioner), preconditioner.GetType(), "#01");
    //
    //        for (int i = 0; i < product.Count; i++)
    //        {
    //            Assert.AreEqual(Precision.EqualsWithinDecimalPlaces(vector[i],
    //                                                                                  result[i],
    //                                                                                  -Precision.Magnitude(s_Epsilon)),
    //                            "#02-" + i.ToString());
    //        }
    //    }
    //}
}
